<template>
  <div class="manage-container">
    <div class="manage-header">
      <el-page-header @back="goBack">
        <template #content>
          <span class="page-title">{{ pageType === 'create' ? '新增应用' : '管理应用' }}</span>
        </template>
      </el-page-header>
    </div>

    <div class="manage-content">
      <!-- 应用管理内容 -->
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'

const route = useRoute()
const router = useRouter()

const pageType = ref(route.params.id === 'create' ? 'create' : 'edit')

const goBack = () => {
  router.push('/apps/list')
}
</script> 